package org.example.dialogue.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import nonapi.io.github.classgraph.json.Id;

import java.util.Date;

/**
 * @author zqtao
 */

@Data
@Schema(description = "Conversations")
@TableName("conversations")
public class Conversations {

    @Schema(description = "对话ID")
    @Id
    @TableId(value = "conversation_id", type = IdType.AUTO)
    private Integer conversationId;

    @Schema(description = "对话所属用户ID")
    private Long userId;

    @Schema(description = "对话标题")
    private String title;

    @Schema(description = "对话开始时间")
    private Date startTime;

    @Schema(description = "对话最后更新时间")
    private Date lastUpdate;

    @Schema(description = "对话描述")
    private String description;

    @Schema(description = "对话图片")
    private String image;

}
